import './assets/main.less'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ArcoVue from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'
import ArcoVueIcon from '@arco-design/web-vue/es/icon'
import App from './App.vue'
import router from './router'
import '@/router/routeGurad'
import i18n from './locales'
import { filterGlobalPermission } from './utils/hasPermission'
const pinia = createPinia()
const app = createApp(App)
app.directive('has', {
  mounted: (el, binding) => {
    filterGlobalPermission(el, binding)
  }
})
app.use(ArcoVue)
app.use(ArcoVueIcon)
app.use(pinia)
app.use(router)
app.use(i18n)

app.mount('#app')
